﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new.aspx.cs" Inherits="AnyOffice.general.work_plan.type._new" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>新建项目类型</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<script src="/aspnet_client/core/function.js"></script>
		<SCRIPT language="javascript">
function check_form()
{
  if(document.Form1.txtTypeNo.value == "")
  {
      alert("项目类型排序号不能为空！");
	document.Form1.txtTypeNo.focus();
    return false;
  }
  
   if(!checkIsInteger(document.Form1.txtTypeNo.value))
  {
      alert("项目类型排序号必须为整数！");
	document.Form1.txtTypeNo.focus();
    return false;
  }
  
  if(document.Form1.txtTypeName.value == "")
  {
      alert("项目类型名称不能为空！");
     document.Form1.txtTypeName.focus();
     return false;
  } 
  return true;
}
		</SCRIPT>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topmargin="5">
		<form id="Form1" method="post" runat="server">
          <div class="main_div">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="tab_ti">
							新建项目类型
					</td>
				</tr>
			</table>
			<br>
			<table border="0" width="500" cellpadding="0" cellspacing="0" align="center" class="tab_pub">
				<tr>
					<td nowrap class="ta_bg">项目类型排序号：</td>
					<td class="ta_txt">
						<asp:TextBox id="txtTypeNo" runat="server" CssClass="BigInput" Columns="4" MaxLength="4"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td nowrap class="ta_bg">项目类型名称：</td>
					<td class="ta_txt">
						<asp:TextBox id="txtTypeName" runat="server" CssClass="BigInput" Columns="30" MaxLength="200"></asp:TextBox>
					</td>
				</tr>
				<tr align="center">
					<td colspan="2" class="bnt_con" nowrap>
					<input type="submit" value="保 存" class="BigButton" name="submit" onClick="return check_form();">
						<input type="button" value="返 回" class="BigButton" name="back" onClick="location='index.aspx';">
					</td>
				</tr>
			</table>
            </div>
		</form>
	</body>
</HTML>
